//封装用户请求模块
import request from "../utils/request"
import store from "../store"
interface LoginParams{
    userName:string
    userPwd:string
}
export const login = (data:LoginParams) => {
    return request({
        method:"POST",
        url:"/user/login",
        data,
    });
};

export const getUserInfo = (id) =>{
    return request({
        method:"GET",
        url:"/userInfo/get",
        params:{userId:id},
    })
}
